package com.atguigu.gmall.seckill;

import com.atguigu.gmall.common.config.mq.annotation.EnableAppMQ;
import com.atguigu.gmall.common.interceptors.annotation.EnableUserAuthFeignInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Description
 * @Return
 * @Author https://weiranyi.github.io
 * @Date Created in 2022-12-26 09:11
 **/
@EnableFeignClients(basePackages = {"com.atguigu.gmall.feign.order"})
@EnableAppMQ
@EnableScheduling // 开启定时任务
@EnableUserAuthFeignInterceptor
@MapperScan(basePackages = "com.atguigu.gmall.seckill.mapper")
@SpringCloudApplication
public class SeckillApplication {
    public static void main(String[] args) {
        SpringApplication.run(SeckillApplication.class,args);
    }
}
